.foo {
  transition: all .5s;
}

.bar {
  padding: 0;
}